<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>iterable学习</title>
    <script src="index.js"></script>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <button type="button" onclick="testIterable()">for ... of循环是ES6引入的新的语法，请测试你的浏览器是否支持</button><br/>
   <button onclick="loopTravelsal()" type="button">用for ... of循环遍历集合</button><br/>
    <button type="button" onclick="Difference()">for...in与for...of区别</button><br/>
    <button type="button" onclick="forEach()">使用iterable内置的forEach方法，它接收一个函数，每次迭代就自动回调该函数。</button><br/>
    <button type="button" onclick="testForEach()">forEach循环Set和Map</button><br/>

</body>
</html>